<div class="clearfix row-main" ng-controller="userAddCtrl">

	<div class='panel'>
		<div class="panel-heading clearfix" style="margin-bottom:20px;" >
			<ul id='typeNav' class='nav nav-tabs pull-left'>
				<li data-type='internal' class="active"><a href="javascript:void(0)" > 添加用户</a></li>
			</ul>
		</div>
		
					<form class="form-horizontal" role="form" id="form" >
						<div class="form-group">
				          <label class="col-md-2 control-label required">用户名</label>
				          <div class="col-md-4">
				             <input type='text' name="user.user_name" class='form-control'  />
				          </div>
				        </div>
						
						<div class="form-group">
							<label class="col-md-2 control-label required">手机号</label>
							<div class="col-md-4">
								<input type="text" name="user.phone" class='form-control' />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label required"> 密码</label>
							<div class="col-md-4">
								<input type="password" id='password' class="form-control" />
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-2 control-label">角色选择</label>
							<div class="col-sm-4" style="position:relative;">
								<input readonly type="text" ng-click="show_tree()" id="role_id" style="cursor:pointer;" class="form-control" />
								<div id="tree_box" class="tree_box col-sm-5" ng-show='showTree'>
									<ul class="tree tree-lines" id="role_tree" data-ng-init="init()">
									  <li class='has-list'>
									  	<i class="list-toggle icon"></i>
									    <a href="#">全部角色</a>
									    <ul>
									      <li ng-repeat="role in roleList">
									      	<a href="#" ng-bind="role.role_name" ng-click='selectRole($event)' attr-id='{{role.id}}'></a>
									      </li>
									    </ul>
									  </li>
									</ul>
								</div>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-md-2 control-label">性别</label>
							<div class="col-md-4">
								<label class="radio-inline">
								  <input type="radio" name="user.sex" checked="checked" value="1" class="" /> 男
								</label>
								<label class="radio-inline">
								  <input type="radio" name="user.sex" value="2" class="" /> 女
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label"> 邮箱</label>
							<div class="col-md-4">
								<input type="text" name="user.mail" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-2 control-label">状态</label>
							<div class="col-md-4">
								<label class="radio-inline">
								  <input type="radio" name="user.state" checked="checked" value="1" class="" /> 正常
								</label>
								<label class="radio-inline">
								  <input type="radio" name="user.state" value="2" class="" /> 锁定或未激活
								</label>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-md-2 control-label"> 排序序号</label>
							<div class="col-md-4">
								<input type="text" id="seq" name="user.seq" class="form-control" />
							</div>
						</div>
						
						<div class="form-group" style="margin-bottom:0;">
							<label class="col-md-2 control-label"></label>
							<div class="col-md-4">
								<div id='formError' class='alert alert-danger hiding'></div>
							</div>
						</div>
						
						<div class="form-group">
				          <div class="col-md-offset-2 col-md-10">
				             <input type="submit" class='btn btn-primary' value='保存' data-loading='稍候...'  ng-click="saveBtn()" />
				             <a href='javascript:void(0)'  class='btn' ui-sref="user" >返回</a>
				          </div>
				        </div>
					</form>
	</div>
</div>